package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * AcademyModel
 * 学院表
 *
 * @author 杨江涛 
 * @version 2.0.0
 * @since 2.0.0 2018-11-22 16:26:53
 */
@ApiModel(value = "AcademyModel:学院表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class AcademyModel implements Serializable {

    //region 模板逆向生产来自AcademyEntity的属性
	/**
	 * id
	 */
	@ApiModelProperty(value = "academy主键")
	@Column(name = "id")
	private String id;
   	/**
	 * 机构名称
	 */
	@ApiModelProperty(value = "机构名称",required = true)
	private String name;

	/**
	 * 机构代码
	 */
	@ApiModelProperty(value = "机构代码",required = true)
	private String code;

	/**
	 * 简称
	 */
    @ApiModelProperty(value = "简称")
	private String abbreviation;

    //endregion

     /* *****************************以下是非模板生成的内容************************************ */
	/**
	 * 专业数
	 */
	@ApiModelProperty(value = "专业数",example = "1")
	private Integer countProfession;

	/**
	 * key
	 */
	@ApiModelProperty(value = "academy主键")
	@Column(name = "key")
	private String key;
	/**
	 * 机构名称
	 */
	@ApiModelProperty(value = "机构名称", required = true)
	private String title;


	/**
	 * 树形图是否可用,前端使用
	 */
	@ApiModelProperty(value = "bool", required = true)
	private boolean disableCheckbox;

	public boolean getDisableCheckbox() {
		return disableCheckbox;
	}

	public void setDisableCheckbox(boolean disableCheckbox) {
		this.disableCheckbox = disableCheckbox;
	}

}
